package com.ep.demo.log;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Controller;

@Controller
@Aspect
public class BookLog {
	@Pointcut("execution(* com.ep..service.*Service.*(..))")
	private void log(){
		System.out.println("log................");
	}
	@Before("log()")
	private void beforeLog(){
		System.out.println("before log.....");
	}
	@After("log()")
	private void afterLog(){
		System.out.println("after log......");
	}
}
